package com.SDR;

import java.io.Serializable;

/**
 * Created by Yoey on 2017/6/26.
 */
public class User implements Serializable{
    private String name;
    private String password;
    private double sal;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public User(String name, String password, double sal) {
        this.name = name;
        this.password = password;
        this.sal = sal;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", sal=" + sal +
                '}';
    }
}
